<template>
  <div class="item" :data-id="item.id" @click="JumpTo(item.id)">
    <img :src="item.wap_banner_url" alt />
    <p class="name">{{ item.name }}</p>
  </div>
</template>

<script>
export default {
  props: ["item"],
  methods: {
    JumpTo(id) {
      console.log(id);
      this.$router.push("/channel/" + id);
    }
  }
};
</script>

<style lang="less" scoped>
.item {
  width: 33.33%;
  text-align: center;
  padding: 16px 8px;
  box-sizing: border-box;
  img {
    width: 100%;
  }
  .name {
    margin: 0 10px;
  }
}
</style>
